/**
** Created by Kstar on 2022/1/12.
 * 生物类，具有所有生物都有的共性
 * 坐标，生成时间，年龄
 *
 *
**/

//

#ifndef HELLOWORLD_CREATURE_H
#define HELLOWORLD_CREATURE_H

#include "string"
#include "../utils/Point.h"

#define debug(a) cout<<(a)<<endl;
#define debug2(a, b) cout<<(a)<<","<<(b)<<endl;
#define debug3(a, b, c) cout<<(a)<<","<<(b)<<","<<(c)<<endl;

using namespace std;


class Creature {
private:
    Point point;
    int createTime;
    int id;
    int age;
    string tag;
public:
    Creature(int cx, int cy, int cTime);

    Creature(int cx, int cy, int cTime,string ctag);
    Creature();

    Creature(Creature &cc);

    Point getPoint();

    void setPoint(int cx, int cy);

    void movePoint(int decX,int decY);
    int getCreateTime();

    int getId();

    int getAge();

    //年龄增加
    void ageAdd(int step);

    string getTag();
};


#endif //HELLOWORLD_CREATURE_H
